package cn.itwen.star.graph.comfyui.client.pojo;

import lombok.Data;

import java.util.UUID;

/*
 * redis中的排队任务
 */
@Data
public class ComfyuiTask {

    //随机生成的id，将来用于redis缓存
    String id = UUID.randomUUID().toString();
    //前端用户提交过来的客户端id
    String wsClientId;
    ComfyuiRequestDto comfyuiRequestDto;
    //comfyui返回的promptId(生图任务得唯一id)
    String promptId;
    long index;
    Long userId;
    int size;

    public ComfyuiTask(String wsClientId, ComfyuiRequestDto comfyuiRequestDto) {
        this.wsClientId = wsClientId;
        this.comfyuiRequestDto = comfyuiRequestDto;
    }
}
